/**
 * @file dictionary
 * @author sunbai
 */

export const componentDictionary = [{
    subName: '图片视图',
    subNameTra: 'cover-image',
    id: 'cover-image'
}, {
    subName: '文本视图',
    subNameTra: 'cover-view',
    id: 'cover-view'
}, {
    subName: '可移动视图容器',
    subNameTra: 'movable-view',
    id: 'movable-view'
}, {
    subName: '可滚动视图区域',
    subNameTra: 'scroll-view',
    id: 'scroll-view'
}, {
    subName: '滑块视图容器',
    subNameTra: 'swiper',
    id: 'swiper'
}, {
    subName: '基础视图',
    subNameTra: 'view',
    id: 'view'
}, {
    subName: '图标',
    subNameTra: 'icon',
    id: 'icon'
}, {
    subName: '进度条',
    subNameTra: 'progress',
    id: 'progress'
}, {
    subName: '富文本',
    subNameTra: 'rich-text',
    id: 'rich-text'
}, {
    subName: '文本',
    subNameTra: 'text',
    id: 'text'
}, {
    subName: '按钮-绑定开放能力',
    subNameTra: 'button',
    id: 'button',
    searchId: '触发用户分享/share/获取用户信息/getUserInfo/获取用户手机号/getPhoneNumber/'
            + '打开授权设置页/openSetting/选择用户收货地址/chooseAddress/选择用户发票抬头/'
            + 'chooseInvoiceTitle/打开客服会话/contact/登录/login/订阅类模板消息/subscribe/'
}, {
    subName: '多项选择器',
    subNameTra: 'checkbox',
    id: 'checkbox'
}, {
    subName: '表单',
    subNameTra: 'form',
    id: 'form'
}, {
    subName: '输入框',
    subNameTra: 'input',
    id: 'input'
}, {
    subName: '表单组件标签',
    subNameTra: 'label',
    id: 'label'
}, {
    subName: '底部弹起的滚动选择器',
    subNameTra: 'picker',
    id: 'picker'
}, {
    subName: '滚动选择器',
    subNameTra: 'picker-view',
    id: 'picker-view'
}, {
    subName: '单项选择器',
    subNameTra: 'radio',
    id: 'radio'
}, {
    subName: '滑动选择器',
    subNameTra: 'slider',
    id: 'slider'
}, {
    subName: '开关选择器',
    subNameTra: 'switch',
    id: 'switch'
}, {
    subName: '多行输入框',
    subNameTra: 'textarea',
    id: 'textarea'
}, {
    subName: '页面导航',
    subNameTra: 'navigator',
    id: 'navigator'
}, {
    subName: '标签栏',
    subNameTra: 'tabs',
    id: 'tabs'
}, {
    subName: '透明视频动画',
    subNameTra: 'animation-video',
    id: 'animation-video'
}, {
    subName: 'Lottie 动画',
    subNameTra: 'animation-view',
    id: 'animation-view'
}, {
    subName: '音频',
    subNameTra: 'audio',
    id: 'audio'
}, {
    subName: '相机',
    subNameTra: 'camera',
    id: 'camera'
}, {
    subName: 'AR相机',
    subNameTra: 'ar-camera',
    id: 'ar-camera'

}, {
    subName: '图片',
    subNameTra: 'image',
    id: 'image'
}, {
    subName: '实时视频播放器',
    subNameTra: 'live-player',
    id: 'live-player'
}, {
    subName: '视频',
    subNameTra: 'video',
    id: 'video'
}, {
    subName: '实时音视频通话',
    subNameTra: 'rtc',
    id: 'rtc'
}, {
    subName: '地图',
    subNameTra: 'map',
    id: 'map'
}, {
    subName: '画布',
    subNameTra: 'canvas',
    id: 'canvas'
}, {
    subName: '广告',
    subNameTra: 'ad',
    id: 'ad'
}, {
    subName: '开放数据',
    subNameTra: 'open-data',
    id: 'open-data'
}, {
    subName: '网页容器',
    subNameTra: 'webview',
    id: 'webview'
}, {
    subName: '点赞',
    id: 'like',
    subNameTra: 'like'
}, {
    subName: '关注小程序',
    subNameTra: 'follow-swan',
    id: 'follow-swan'
}, {
    subName: '一站式互动',
    id: 'one-stop-interaction',
    subNameTra: 'one-stop-interaction',
    searchId: 'comment-list/comment-detail/评论列表/评论详情'
}];

export const apiDictionary = [{
    subName: '检测小程序更新',
    id: 'get-update-manager',
    searchId: 'getUpdateManager'
}, {
    subName: '页面跳转',
    id: 'navigate-to',
    searchId: 'navigateTo/navigateBack/reLaunch/switchTab'
}, {
    subName: '发起请求',
    id: 'request',
    searchId: 'request/RequestTask'
}, {
    subName: '上传文件',
    id: 'upload-file',
    searchId: 'uploadFile/UploadTask'
}, {
    subName: '下载文件',
    id: 'download-file',
    searchId: 'downloadFile/DownloadTask'
}, {
    subName: 'webSocket',
    id: 'web-socket',
    searchId: 'webSocket/swan.connectSocket/onSocketOpen/onSocketError'
            + '/sendSocketMessage/onSocketMessage/closeSocket/onSocketClose'
}, {
    subName: '显示消息提示框',
    id: 'toast',
    searchId: 'showToast/hildToast'
}, {
    subName: '显示模态弹窗',
    id: 'modal',
    searchId: 'showModal'
}, {
    subName: '显示操作菜单',
    id: 'show-action-sheet',
    searchId: 'showActionSheet'
}, {
    subName: '导航栏加载动画',
    id: 'navigation-bar-loading',
    searchId: 'showNavigationBarLoading/hideNavigationBarLoading'
}, {
    subName: '设置页面标题',
    id: 'set-navigation-bar-title',
    searchId: 'setNavigationBarTitle'
}, {
    subName: '设置导航栏颜色',
    id: 'set-navigation-bar-color',
    searchId: 'setNavigationBarColor'
}, {
    subName: '设置底部标签栏',
    id: 'tab-bar',
    searchId: 'showTabBar/hideTabBar/setTabBarItem/setTabBarStyle/setTabBarBadge'
            + 'showTabBarRedDot/hideTabBar/hideTabBarRedDot/removeTabBarBadge'
}, {
    subName: '关注小程序引导',
    id: 'show-favorite-guide',
    searchId: 'showFavoriteGuide'
}, {
    subName: '页面滚动',
    id: 'page-scroll-to',
    searchId: 'pageScrollTo'
}, {
    subName: '下拉刷新',
    id: 'pull-down-refresh',
    searchId: 'onPullDownRefresh/swan.startPullDownRefresh/stopPullDownRefresh'
}, {
    subName: '设置背景颜色',
    id: 'set-background-color',
    searchId: 'setBackgroundColor'
}, {
    subName: '创建动画',
    id: 'create-animation',
    searchId: 'createAnimation/Animation'
}, {
    subName: '获取菜单按钮布局信息',
    id: 'get-menu-button-bounding-client-rect',
    searchId: 'getMenuButtonBoundingClientRect'
}, {
    subName: '获取节点信息',
    id: 'create-selector-query',
    searchId: 'createSelectorQuery/SelectorQuery'
}, {
    subName: '用户可见节点',
    id: 'intersection-observer',
    searchId: 'createIntersectionObserver/IntersectionObserver'
}, {
    subName: '数据存储',
    id: 'storage',
    searchId: 'setStorage/getStorage/getStorageInfo/clearStorage'
}, {
    subName: '身份证识别',
    id: 'ocrIdCard',
    searchId: 'ocrIdCard'
}, {
    subName: '银行卡识别',
    id: 'ocr-bank-card',
    searchId: 'ocrBankCard'
}, {
    subName: '驾驶证识别',
    id: 'ocr-driving-license',
    searchId: 'ocrDrivingLicense'
}, {
    subName: '行驶证识别',
    id: 'ocr-vehicle-license',
    searchId: 'ocrVehicleLicense'
}, {
    subName: '文本审核',
    id: 'text-review',
    searchId: 'textReview'
},
// {
//     subName: '词法分析',
//     id: 'nlpLexerCustom'
// },
{
    subName: '通用场景识别',
    id: 'advanced-general-identify',
    searchId: 'advancedGeneralIdentify'
}, {
    subName: '动物识别',
    id: 'animal-classify',
    searchId: 'animalClassify'
}, {
    subName: '车型识别',
    id: 'car-classify',
    searchId: 'carClassify'
}, {
    subName: '菜品识别',
    id: 'dish-classify',
    searchId: 'dishClassify'
}, {
    subName: '品牌识别',
    id: 'logo-classify',
    searchId: 'logoClassify'
},
// {
//   subName: '主体位置检测',
//   id: 'objectDetectIdentify'
// },
{
    subName: '植物识别',
    id: 'plant-classify',
    searchId: 'plantClassify'
}, {
    subName: '图像审核',
    id: 'image-audit',
    searchId: 'imageAudit'
}, {
    subName: '语音识别',
    id: 'get-voice-manager',
    searchId: 'getVoiceRecognizer/VoiceRecognizer'
},
// {
//     subName: '语音合成',
//     id: 'textToAudio'
// },
{
    subName: '人脸检测',
    id: 'face-detect',
    searchId: 'faceDetect'
}, {
    subName: '人脸对比',
    id: 'face-match',
    searchId: 'faceMatch'
},
// {
//     subName: '人脸搜索',
//     id: 'faceSearch'
// },
{
    subName: '人脸公安验证',
    id: 'face-person-verify',
    searchId: 'facePersonVerify'
}, {
    subName: '身份信息验证',
    id: 'face-person-idmatch',
    searchId: 'facePersonIdmatch'
}, {
    subName: '预览图片',
    id: 'preview-image',
    searchId: 'previewImage'
}, {
    subName: '获取图片信息',
    id: 'get-image-info',
    searchId: 'getImageInfo'
}, {
    subName: '保存图片到相册',
    id: 'save-image-to-photos-album',
    searchId: 'saveImageToPhotosAlbum'
}, {
    subName: '选择图片',
    id: 'choose-image',
    searchId: 'chooseImage'
}, {
    subName: '选择图片和视频',
    id: 'choose-album',
    searchId: 'chooseAlbum'
}, {
    subName: '背景音频',
    id: 'get-background-audio-manager',
    searchId: 'getBackgroundAudioManager/BackgroundAudioManager'
}, {
    subName: '录音',
    id: 'get-recorder-manager',
    searchId: 'getRecorderManager/RecordManager'
}, {
    subName: '获取音频输入源',
    id: 'get-available-audio-sources',
    searchId: 'getAvailableAudioSources'
}, {
    subName: '选择视频',
    id: 'choose-video',
    searchId: 'chooseVideo'
}, {
    subName: '保存视频到相册',
    id: 'save-video-to-photos-album',
    searchId: 'saveVideoToPhotosAlbum'
}, {
    subName: '获取位置',
    id: 'get-location',
    searchId: 'getLocation'
}, {
    subName: '使用原生地图查看位置',
    id: 'open-location',
    searchId: 'openLocation'
}, {
    subName: '使用原生地图选择位置',
    id: 'choose-location',
    searchId: 'chooseLocation'
}, {
    subName: '创建绘图',
    id: 'create-canvas-context',
    searchId: 'canvas/createCameraContext/canvasToTempFilePath/CanvasContext'
}, {
    subName: '文件',
    id: 'file',
    searchId: 'saveFile/getFileInfo/getSavedFileList/getSavedFileInfo/removeSavedFile/openDocument'
}, {
    subName: '文件管理系统',
    id: 'file-system',
    searchId: 'getFileSystemManager/FileSystemManager'
}, {
    subName: '获取手机系统信息',
    id: 'get-system-info',
    searchId: 'getSystemInfo/getSystemInfoSync/getEnvInfoSync'
}, {
    subName: '获取运行环境信息',
    id: 'get-env-info-sync',
    searchId: 'getEnvInfoSync'
}, {
    subName: '获取手机网络类型',
    id: 'get-network-type',
    searchId: 'getNetworkType'
}, {
    subName: '监听网络状态变化',
    id: 'on-network-status-change',
    searchId: 'onNetworkStatusChange'
}, {
    subName: '屏幕亮度',
    id: 'screen-brightness',
    searchId: 'setScreenBrightness/getScreenBrightness/setKeepScreenOn'
}, {
    subName: '拨打电话',
    id: 'make-phone-call',
    searchId: 'makePhoneCall'
}, {
    subName: '振动',
    id: 'vibrate',
    searchId: 'vibrateLong/vibrateShort'
}, {
    subName: '剪贴板',
    id: 'clipboard-data',
    searchId: 'setClipboardData/getClipboardData'
}, {
    subName: '扫码',
    id: 'scan-code',
    searchId: 'scanCode'
}, {
    subName: '监听加速度数据',
    id: 'get-accelerometer',
    searchId: 'onAccelerometerChange/startAccelerometer/stopAccelerometer'
}, {
    subName: '监听罗盘数据',
    id: 'get-compass',
    searchId: 'onCompassChange/startCompass/stopCompass'
}, {
    subName: '监听设备方向变化',
    id: 'device-motion',
    searchId: 'onDeviceMotionChange/startDeviceMotionListening/stop/DeviceMotionListening'
}, {
    subName: '监听手机内存状态',
    id: 'on-memory-warning',
    searchId: 'onMemoryWarning'
}, {
    subName: '添加手机联系人',
    id: 'add-phone-contact',
    searchId: 'addPhoneContact'
}, {
    subName: '获取电量信息',
    id: 'get-battery-info',
    searchId: 'getBatteryInfo/getBatteryInfoSync'
}, {
    subName: '监听用户截屏事件',
    id: 'on-user-capture-screen',
    searchId: 'onUserCaptureScreen'
}, {
    subName: '在系统日历中新建日程',
    id: 'event-on-calendar',
    searchId: 'addEventOnCalendar/deleteEventOnCalendar'
}, {
    subName: '监听键盘高度变化',
    id: 'keyboard-heightchange',
    searchId: 'onKeyboardHeightChange/offKeyboardHeightChange'
}, {
    subName: '获取第三方数据',
    id: 'get-ext-config',
    searchId: 'getExtConfig'
}, {
    subName: '授权',
    id: 'authorize',
    searchId: 'authorize'
}, {
    subName: '设置',
    id: 'open-setting',
    searchId: 'openSetting'
}, {
    subName: '支付',
    id: 'payment',
    searchId: 'requestPolymerPayment'
}, {
    subName: '书架',
    id: 'book-shelf',
    searchId: 'insertBookshelf/navigateToBookshelf'
}, {
    subName: '获取用户设备标识',
    id: 'get-swan-id',
    searchId: 'getSwanId'
}, {
    subName: '自定义页面分享信息',
    id: 'on-share-app-message',
    searchId: 'onShareAppMessage'
}, {
    subName: '打开分享面板',
    id: 'open-share',
    searchId: 'openShare'
}, {
    subName: '分享文件',
    id: 'share-file',
    searchId: 'shareFile'
}, {
    subName: '选择收货地址',
    id: 'choose-address',
    searchId: 'chooseAddress'
}, {
    subName: '获取发票抬头',
    id: 'choose-invoice-title',
    searchId: 'chooseInvoiceTitle'
}, {
    subName: '原生全屏内容发布器',
    id: 'community-editor',
    searchId: 'openCommunityEditor/closeCommunityEditor'
}, {
    subName: '原生半屏内容发布器',
    id: 'open-reply-editor',
    searchId: 'openReplyEditor/closeReplyEditor'
}, {
    subName: '模板消息',
    id: 'template-message',
    searchId: 'Template'
}];
export const extensionDictonary = [{
    subName: '图标',
    id: 'smt-icon',
    subNameTra: 'icon'
}, {
    subName: '自定义导航栏',
    id: 'smt-navigation',
    subNameTra: 'navigation'
}, {
    subName: '关注引导蒙层',
    id: 'smt-mask',
    subNameTra: 'mask'
}, {
    subName: '信息流',
    id: 'smt-feed',
    subNameTra: 'feed'
}, {
    subName: '信息流子项',
    id: 'smt-feed-item',
    subNameTra: 'feed-item'
}, {
    subName: '页面状态',
    id: 'smt-status-page',
    subNameTra: 'status-page'
}, {
    subName: '加载',
    id: 'smt-spin',
    subNameTra: 'spin'
}, {
    subName: '刷新',
    id: 'smt-refresh',
    subNameTra: 'refresh'
}, {
    subName: '搜索框',
    id: 'smt-search-bar',
    subNameTra: 'search-bar'
}, {
    subName: '多行输入框',
    id: 'smt-textarea',
    subNameTra: 'textarea'
}, {
    subName: '图片上传器',
    id: 'smt-image-uploader',
    subNameTra: 'image-uploader'
}, {
    subName: '页面状态模板',
    id: 'smt-status-page',
    subNameTra: ''
}, {
    subName: '信息流模板',
    id: 'smt-feed-page',
    subNameTra: ''
}, {
    subName: '图文详情页模板',
    id: 'smt-detail-pages',
    subNameTra: ''
}, {
    subName: '登录中间页模板',
    id: 'get-phone-number',
    subNameTra: ''
}, {
    subName: '基础政务服务大厅模板',
    id: 'gov/page-frame/pages/home/index',
    subNameTra: ''
}, {
    subName: '综合政务服务大厅模板',
    id: 'gov/service-hall/pages/home/index',
    subNameTra: ''
}, {
    subName: '公积金查询模板',
    id: 'gov/fund/pages/index/index',
    subNameTra: ''
}, {
    subName: '社保查询模板',
    id: 'gov/social-security/pages/index/index',
    subNameTra: ''
}];
